/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rdr.geo.entities;

/**
 *
 * @author ruanor
 */
public abstract class LatLonVal {
    private double value = 0;
    
    public LatLonVal(double value)
    {
        this.value = value;
    }
    
    public LatLonVal(int degrees, int minutes, double seconds)
    {
        value = degrees + (double) minutes / 60 + (double) seconds / 3600; 
    }
    
    /**
     * @return the value
     */
    public double getValue() {
        return value;
    }
    
    public double getValueRad(){
        return value * Math.PI / (double) 180;
    }

    /**
     * @param value the value to set
     */
    public void setValue(long value) {
        this.value = value;
    }
}
